import request from '@/utils/request'

// 查询存在专业的学校信息
export function listSchoolList() {
    return request({
        url: '/noAuth/web/school/list',
        method: 'get'
    })
}
// 查询存在专业的资格证书专业信息
export function listQualificationCertificateList() {
    return request({
        url: '/noAuth/web/qualificationCertificate/list',
        method: 'get'
    })
}

// 查询专业信息
export function getSpecialty(spId) {
    return request({
        url: '/noAuth/web/school/getSpecialty/'+spId,
        method: 'get'
    })
}
// 添加学生  /noAuth/web/student/add
export function addStudent(data) {
    return request({
        url: '/noAuth/web/student/add',
        method: 'post',
        data
    })
}

export function getStudentByIdCardAndProject(data) {
    return request({
        url: '/noAuth/web/student/getByCardIdAndProjectId?idCard='+data.idCard+"&projectId="+data.projectId,
        method: 'get'
    })
}

// 删除文件
export function removeStudentFile(fileId) {
    return request({
        url: '/noAuth/web/student/deleteFile/'+fileId,
        method: 'delete'
    })
}

// 添加文件资料
export function addStudentFileUpload(data) {
    return request({
        url: '/noAuth/web/addStudentFileUpload',
        method: 'post',
        data: data
    })
}
// 修改学生信息
export function updateStudent(data) {
    return request({
        url: '/noAuth/web/student/update',
        method: 'post',
        data: data
    })
}
